<script setup lang="ts">
import request from './utils/request';
import { onMounted } from 'vue';
// import RouterView from '@/router/index';

onMounted(async () => {
  const res = await request.get('/home/index');
  console.log(res);
});
</script>

<template>
  <!-- 一级路由，根出口 -->
  <RouterView />
</template>

<style lang="less">
// 必须导入 variables.less
// @import "@/assets/styles/variables.less";
// @import "@/assets/styles/mixins.less";

h1 {
  color: @warnColor;
  .hoverShadow();
}
</style>
